NAME		= server
SRCS		= server.cpp	\
		ThreadUnix.cpp	\
		client.cpp	\

OBJS		= $(SRCS:.cpp=.o)

CXX		= g++
CXXFLAGS	= -pipe -g -fPIC -DUNIX -W -Wall -Wextra -ansi -pedantic -I. -ggdb -g3
LDFLAGS		= -pthread

all: $(NAME)

$(NAME): $(OBJS)
		$(CXX) -o $(NAME) $(OBJS) $(LDFLAGS)

clean:
		rm -rf $(OBJS)

fclean: clean
		rm -rf $(NAME)

re: fclean all
